class Member < User
  def base_permissions(action, item_type, item = nil)
    if item && item.moderated_by?(self)
      item.moderatorship_for_user(self).can?(action, item_type, item)
    elsif !(item.respond_to?(:private?) && item.private?)
      case action.to_sym
      when :update then item.owned_by?(self)
      when :create then !(item.respond_to?(:locked?) && item.locked?)
      when :view then true
      end
    end
  end
  
  def can_create_forum?(forum = nil)
    false
  end
  
  def can_create_moderatorship?(moderatorship = nil)
    false
  end
  
  def member?
    true
  end
  
end
